package cn.tedu.demo01wj.controller;

import cn.tedu.demo01wj.entity.IndexBanner;
import cn.tedu.demo01wj.mapper.IndexBannerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class IndexBannerController {

    @Autowired(required = false)
    IndexBannerMapper mapper;

    @RequestMapping("/indexbanner/select")
    public List<IndexBanner> select(){

        return mapper.select();
    }

}
